<?php


namespace App\Admin\Repositories;

use Dcat\Admin\Repositories\EloquentRepository;
use App\Models\News as NewsModel;

class News extends EloquentRepository
{
    protected $eloquentClass = NewsModel::class;

    /**
     * 设置表格查询的字段，默认查询所有字段
     *
     * @return array
     */
    public function getGridColumns()
    {
        return ['id', 'years', 'news_date', 'type', 'title','keyword','description','state','issue_time','is_ding'];
    }
}
